import http from "./request";
import { baseUrl } from "./baseUrl";

// 登录
export const GetLogin = data => http.post(`${baseUrl.httpUrl}/Sys_User/Login`, data);

// 权限获取
export const getModuleByUser = data => http.get(`${baseUrl.httpUrl}/Sys_RM/getModuleByUser`,data);

// 获取电站
export const GetAllBasinMsg = data => http.get(`${baseUrl.httpUrl}/Basin/getAllBasin`,data);
// 坝群总览 
export const GetStationByLoginUser = data => http.get(`${baseUrl.httpUrl}/Station/GetStationByLoginUser`,data)
export const GetCount = data => http.get(`${baseUrl.httpUrl}/Station/GetCount`,data)


// 流域电站页接口
export const GetWorkStatus = data => http.get(`${baseUrl.httpUrl}/BasinStation/GetWorkStatus`,data);
export const getOutPoints = data => http.get(`${baseUrl.httpUrl}/Basin/getOutPoints`,data)
export const GetStatisticLedger = data => http.get(`${baseUrl.httpUrl}/Sys_Ledger/GetStatisticLedger`,data)
export const GetBaseInfo = data => http.get(`${baseUrl.httpUrl}/BasinStation/GetBaseInfo01`,data);
export const GetAllBasin = params => http.get(`${baseUrl.httpUrl}/basin/getAllBasin`,params);
export const GetDamHealth = data => http.get(`${baseUrl.httpUrl}/BasinStation/GetDamHealth01`,data);
export const GetMonitorData = data => http.get(`${baseUrl.httpUrl}/BasinStation/GetMonitorData`,data);
export const GetPatrolEvaluation = data => http.get(`${baseUrl.httpUrl}/BasinStation/GetPatrolEvaluation`,data);
export const GetStationByBasinID = BasinID => http.post(`${baseUrl.httpUrl}/Station/GetStationByBasinID?BasinID=${BasinID}`);
export const GetSationImageUrl = id => http.post(`${baseUrl.httpUrl}/File/GetSationImageUrl?id=${id}`);
export const GetVnvironmentalInfo = data => http.get(`${baseUrl.httpUrl}/BasinStation/GetVnvironmentalInfo`,data)

// 电站首页
 export const GetDamSecondConclusion = data => http.get(`${baseUrl.httpUrl}/IndexValue/GetDamSecondConclusion`,data);
 export const getOutlierDatas = data => http.get(`${baseUrl.httpUrl}/MissingTest/getOutlierDatas`,data)
export const GetInstrumentStatusNumber = stationID => http.post(`${baseUrl.httpUrl}/PowerPoint/getInstrumentStatusNumber?stationID=${stationID}`);
export const getStationInspectionData = params => http.get(`${baseUrl.httpUrl}/InspectionData/getStationInspectionData`,params);
export const GetQueryById = id => http.post(`${baseUrl.httpUrl}/Station/QueryById?id=${id}`); export const GetvrinfoStation = stationID => http.get(`${baseUrl.httpUrl}/station/getvrinfo?stationId=${stationID}`);
export const GetHydrographs = (stationID,pointName) => http.post(`${baseUrl.httpUrl}/GetHydrograph/GetHydrographs?stationID=${stationID}&pointName=${pointName}`);
export const GetDamAbnormalIndex = data => http.get(`${baseUrl.httpUrl}/IndexValue/GetDamAbnormalIndex`,data)


// 监测数据页
export const GetTreeStyle = station_id => http.post(`${baseUrl.httpUrl}/PointTree/GetTreeStyle?station_id=${station_id}`);

export const GetTree = (station_id, style,id) => http.post(`${baseUrl.httpUrl}/PointTree/GetTree?station_id=${station_id}&style=${style}&id=${id}`);

export const searchPointByName = (stationId,style,name) => http.post(`${baseUrl.httpUrl}/PointTree/GetPointByName?station_id=${stationId}&style=${style}&pointName=${name}`)
export const getMonitoringTransformData = data => http.post(`${baseUrl.httpUrl}/INSTR30102020001/getMonitoringTransformData`,data)
export const transformDataImages = data => http.get(`${baseUrl.httpUrl}/INSTR30102020001/getMonitoringTransformDataImages`,data)
export const updateValue = data => http.post(`${baseUrl.httpUrl}/INSTR30102020001/updateValues`,data)
export const GetMonitoringList = data => http.post(`${baseUrl.httpUrl}/INSTR30102020001/getmonitoringData`,data);
export const GetValueAllEndCopy = (code_id,comp,filtering,startTime,endTime) => http.post(`${baseUrl.httpUrl}/INSTR30102020001/getValueAllEnd1?code_id=${code_id}&comp=${comp}&a=${filtering.a}&b=${filtering.b}&c=${filtering.c}&d=${filtering.d}&e=${filtering.e}&f=${filtering.f}&g=${filtering.g}&k=${filtering.k}&l=${filtering.l}&valueType=${filtering.valueType}&startTime=${startTime}&endTime=${endTime}`);
export const getEnvironmentData = data => http.post(`${baseUrl.httpUrl}/INSTR30102020001/getMonitoringTransformEnvironmentData`,data)
export const OutlierPoints = data => http.get(`${baseUrl.httpUrl}/computeIndex/OutlierPoints`,data)
export const GetInsertCOMP = data => http.get(`${baseUrl.httpUrl}/INSTR30102020001/GetInsertCOMP`,data);
export const insertPointCalc = data => http.post(`${baseUrl.httpUrl}/Instr/insertPointCalc`,data)
export const insertPointSave = data => http.post(`${baseUrl.httpUrl}/Instr/insertPointSave`,data)
export const GetOuputmonitoringData = data => http.postExcel(`${baseUrl.httpUrl}/INSTR30102020001/ouputmonitoringData`,data);
export const createTemp = data => http.get(`${baseUrl.httpUrl}/Instr/createTemp`,data)
export const SetImportPoint = data => http.post(`${baseUrl.httpUrl}/Instr/importPoint`, data);
export const importPointAllValues = data => http.post(`${baseUrl.httpUrl}/Instr/importPointAllValues`, data);
export const QueryByCODE_ID = data => http.get(`${baseUrl.httpUrl}/PowerPointGatherFreq/QueryByCODE_ID`,data)
export const QueryByCODE_IDEdit = data => http.post(`${baseUrl.httpUrl}/PowerPointGatherFreq/edit`,data)
export const GetModelFInfo = data => http.get(`${baseUrl.httpUrl}/InstrumentModel/GetModelFInfo`,data)
export const setPointNameAsync = data => http.post(`${baseUrl.httpUrl}/PowerPointConfig/setPointNameAsync`,data)



// 巡视页面
export const getInspectionTempsnew = data => http.get(`${baseUrl.httpUrl}/InspectionType/getInspectionTemps`,data)
export const SaveAsTemp = data => http.post(`${baseUrl.httpUrl}/InspectionType/SaveAsTemp`,data)
export const InspectionTypeAdd = data => http.post(`${baseUrl.httpUrl}/InspectionType/Add`,data)
export const InspectionTypeEdit = data => http.post(`${baseUrl.httpUrl}/InspectionType/Edit`,data)
export const InspectionTypeDel = data => http.get(`${baseUrl.httpUrl}/InspectionType/Del?ID=${data}`)
export const inspectionDataGetTree = data => http.get(`${baseUrl.httpUrl}/InspectionTree/GetTree`,data);
export const InspectionTreeAdd = data => http.post(`${baseUrl.httpUrl}/InspectionTree/Add`,data);
export const InspectionTreeEdit = data => http.post(`${baseUrl.httpUrl}/InspectionTree/Edit`,data);
export const InspectionTreeDel = data => http.get(`${baseUrl.httpUrl}/InspectionTree/Del`,data);
export const getInspectionTemps = data => http.get(`${baseUrl.httpUrl}/InspectionTemp/getInspectionTemps`,data)
export const GetInspectionTempTrees = data => http.get(`${baseUrl.httpUrl}/InspectionTempTree/GetInspectionTempTrees`,data)
export const InspectionTempTreeImport = data => http.get(`${baseUrl.httpUrl}/InspectionTempTree/InspectionTempTreeImport`,data)
export const getInspectionData = data => http.get(`${baseUrl.httpUrl}/InspectionData/getInspectionData`,data);
export const inspectionDataDelFile = id => http.get(`${baseUrl.httpUrl}/InspectionData/DelFile?InspectionFileId=${id}`);
export const inspectionDataUpFile = data => http.post(`${baseUrl.httpUrl}/InspectionData/upFile`,data);
export const inspectionDataAdd = data => http.post(`${baseUrl.httpUrl}/InspectionData/Add`,data);
export const inspectionDataEdit = data => http.post(`${baseUrl.httpUrl}/InspectionData/Edit`,data);
export const getBwNr = data => http.get(`${baseUrl.httpUrl}/InspectionData/getBwNr`,data)
export const inspectionDataDel = data => http.get(`${baseUrl.httpUrl}/InspectionData/Del`,data);

export const ExportInspection = data => http.post(`${baseUrl.httpUrl}/InspectionData/ExportInspectionData1`,data)
export const inspectionDataCheckStatus = data => http.get(`${baseUrl.httpUrl}/InspectionData/CheckStatus`,data);


// 埋设信息
export const GetTreeInstr = (station_id, style) => http.post(`${baseUrl.httpUrl}/PointTree/GetTree_Instr?station_id=${station_id}&style=${style}`);
export const GetInstrInformationInPage =  data => http.post(`${baseUrl.httpUrl}/PowerPoint/getInstrInformation`,data);
export const PointMonitor = data => http.get(`${baseUrl.httpUrl}/PointMonitor`,data);
export const setPowerPointBurys = data => http.post(`${baseUrl.httpUrl}/PowerPoint/setBurys`,data);

// 率定信息
export const PointQueryById = data => http.post(`${baseUrl.httpUrl}/PointParameter/QueryAllByTreeID`,data);
export const PointQueryPoint = data => http.post(`${baseUrl.httpUrl}/PointParameter/QueryPoint`,data);
export const GetFormulaByModeId = data => http.get(`${baseUrl.httpUrl}/InstrumentCOMP/GetFormulaByModeId?InstrumentModelID=${data}`);
export const getPointValves = data => http.get(`${baseUrl.httpUrl}/Point_Valve/getPoint_Valves`,data)
export const PointQueryByIdAdd = data => http.post(`${baseUrl.httpUrl}/PointParameter/SetAllParamByTreeID`,data);
export const PointQueryByIdEdit = data => http.post(`${baseUrl.httpUrl}/PointParameter/SetAllParamByTreeID`,data);
export const PointQueryByIdDel = data => http.get(`${baseUrl.httpUrl}/PointParameter/DelAll`,data);
export const QueryTitleByTreeID = data => http.post(`${baseUrl.httpUrl}/PointParameter/QueryTitleByTreeID`,data)
export const SetAllParamsByTreeID = data => http.post(`${baseUrl.httpUrl}/PointParameter/SetAllParamsByTreeID`,data)
export const setPointValve = data => http.post(`${baseUrl.httpUrl}/Point_Valve/setPoint_Valve`,data)


// 日志
export const SysLog = data => http.get(`${baseUrl.httpUrl}/Sys_Log/QueryPage`,data);
export const SysLogMenu = data => http.get(`${baseUrl.httpUrl}/Sys_Log/getMenu`,data);

// 工程资料
export const DocFileAdd = data => http.post(`${baseUrl.httpUrl}/Doc_File/Add`,data);
export const DocFileEdit = data => http.post(`${baseUrl.httpUrl}/Doc_File/Edit`,data);
export const DocFileDel = id => http.get(`${baseUrl.httpUrl}/Doc_File/Del?id=${id}`);
export const RemoveFiles = data => http.post(`${baseUrl.httpUrl}/Doc_File/RemoveFiles`,data);
export const getByTreeID = data => http.get(`${baseUrl.httpUrl}/Doc_File/getByTreeID`,data);
export const AddFiles = data => http.post(`${baseUrl.httpUrl}/Doc_File/AddFiles`,data);
export const EditFileName = data => http.post(`${baseUrl.httpUrl}/Doc_File/EditFile`,data);
export const GetDocTree = data => http.get(`${baseUrl.httpUrl}/Doc_Tree/GetTreeAsync`,data);
export const DocTreeAdd = data => http.post(`${baseUrl.httpUrl}/Doc_Tree/Add`,data);
export const DocTreeEdit = data => http.post(`${baseUrl.httpUrl}/Doc_Tree/Edit`,data);
export const DocTreeDel = data => http.get(`${baseUrl.httpUrl}/Doc_Tree/Del`,data);

// 数据有效性分析
export const getMonitoringTreeData = (stationID,OUTLIERSIGN,style,startTime,endTime) => http.post(`${baseUrl.httpUrl}/INSTR30102020001/getMonitoringTreeData?stationID=${stationID}&OUTLIERSIGN=${OUTLIERSIGN}&style=${style}&startTime=${startTime}&endTime=${endTime}`)
export const GetmonitoringDataOutlier = (stationID, treeID, startTime, endTime, pageIndex, pageSize, timeSequence,outlinersing,TreeStyle) => http.post(`${baseUrl.httpUrl}/INSTR30102020001/getmonitoringDataOutlier?stationID=${stationID}&treeID=${treeID}&startTime=${startTime}&endTime=${endTime}&pageIndex=${pageIndex}&pageSize=${pageSize}&timeSequence=${timeSequence}&OUTLIERSIGN=${outlinersing}&TreeStyle=${TreeStyle}`);
 export const GetValueAllEnd = (code_id,comp,OUTLIERSIGN,filtering) => http.post(`${baseUrl.httpUrl}/INSTR30102020001/getValueAllEnd?code_id=${code_id}&comp=${comp}&OUTLIERSIGN=${OUTLIERSIGN}&a=${filtering.a}&b=${filtering.b}&c=${filtering.c}&d=${filtering.d}&e=${filtering.e}&f=${filtering.f}&g=${filtering.g}&k=${filtering.k}&l=${filtering.l}`);
 export const getMonitoringErrorData = (stationID,treeID,startTime,endTime,pageIndex,pageSize,timeSequence,OUTLIERSIGN,treeStyle) => http.post(`${baseUrl.httpUrl}/INSTR30102020001/getMonitoringErrorData?stationID=${stationID}&treeID=${treeID}&startTime=${startTime}&endTime=${endTime}&pageIndex=${pageIndex}&pageSize=${pageSize}&timeSequence=${timeSequence}&OUTLIERSIGN=${OUTLIERSIGN}&TreeStyle=${treeStyle}`)
 export const getMissingTestAlarm = data => http.get(`${baseUrl.httpUrl}/MissingTest/getMissingTestAlarm`,data)


//  表格整编
export const GetBWTTree = data => http.get(`${baseUrl.httpUrl}/GraphTree/GetTreeByCATEGROY`,data);
export const getTableByTreeID = data => http.get(`${baseUrl.httpUrl}/R_Table/getTableByTreeIDV2`,data)
export const GraphTreeAdd = data => http.post(`${baseUrl.httpUrl}/GraphTree/Add`,data);
export const GraphTreetEdit = data => http.post(`${baseUrl.httpUrl}/GraphTree/Edit`,data);
export const GraphTreeDel = id => http.get(`${baseUrl.httpUrl}/GraphTree/Del?ID=${id}`);
export const ImportTable = data => http.post(`${baseUrl.httpUrl}/GraphTree/ImportTable`,data)
export const SetTime = data => http.post(`${baseUrl.httpUrl}/GraphTree/SetTime`,data)
export const setOUTLIERSIGNs = data => http.post(`${baseUrl.httpUrl}/R_Table/setOUTLIERSIGNs`,data)
export const setTableMode = data => http.post(`${baseUrl.httpUrl}/R_Table/setTableMode`,data)
export const setTableTime = data => http.post(`${baseUrl.httpUrl}/R_Table/setTableTime`,data)
export const TableDel = data => http.get(`${baseUrl.httpUrl}/R_Table/Del`,data)
export const setColOrRowCellsTime = data => http.post(`${baseUrl.httpUrl}/R_Table/setColOrRowCellsTime`,data)
export const setTableCell = data => http.post(`${baseUrl.httpUrl}/R_Table/setTableCell`,data)
export const getTableCell = data => http.get(`${baseUrl.httpUrl}/R_Table/getTableCell`,data)


// 图形整编
export const getLineViewsByTreeID = data => http.get(`${baseUrl.httpUrl}/R_LineInfo/getLineViewsByTreeIDNull`,data)
export const linesAdd = data => http.post(`${baseUrl.httpUrl}/R_Line/Add`,data)
export const linesEidt = data => http.post(`${baseUrl.httpUrl}/R_Line/Edit`,data)
export const linesDel = data => http.get(`${baseUrl.httpUrl}/R_Line/Del`,data)
export const getPointComps = data => http.get(`${baseUrl.httpUrl}/PointHelp/getPointComps`,data)
export const setLineInfos = data => http.post(`${baseUrl.httpUrl}/R_LineInfo/setLineInfos`,data)
export const getLineInfosV1 = data => http.post(`${baseUrl.httpUrl}/R_LineInfo/getLineInfos_V1`,data)
export const delDataOnLine = data => http.post(`${baseUrl.httpUrl}/R_LineInfo/delDataOnLine`,data)
export const getLineHideData = data => http.get(`${baseUrl.httpUrl}/LineHideData/getLineHideData`,data)
export const LineHideDataDel = data => http.get(`${baseUrl.httpUrl}/LineHideData/Del`,data)
export const getPointData = data => http.post(`${baseUrl.httpUrl}/R_LineInfo/getPointData`,data)
export const lineInfOGetOT = data => http.post(`${baseUrl.httpUrl}/R_LineInfo/get_O_T`,data)
export const lineInfOSetOT = data => http.post(`${baseUrl.httpUrl}/R_LineInfo/set_O_T`,data)
export const setLineOUTLIERSIGN = data => http.post(`${baseUrl.httpUrl}/R_LineInfo/setLineOUTLIERSIGN`,data)
export const LineInfoTime = data => http.post(`${baseUrl.httpUrl}/R_LineInfo/SetTime`,data)
export const ImportTree = data => http.post(`${baseUrl.httpUrl}/GraphTree/ImportTree`,data)

// 变位图
export const getLinkInfo = data => http.get(`${baseUrl.httpUrl}/GraphT_PointT/getLinkInfo`,data);
export const getBwtConfigsByTreeID = data => http.post(`${baseUrl.httpUrl}/GraphConfig/getBwtConfigsByTreeID`,data)
export const GraphPointDraw = data => http.post(`${baseUrl.httpUrl}/GraphPointDraw/GraphPointDraw`,data);
export const getGraphFont = data => http.get(`${baseUrl.httpUrl}/GraphFont/getGraphFont`,data)
export const setGraphFont = data => http.post(`${baseUrl.httpUrl}/GraphFont/setGraphFont`,data)
export const setGraphPointFonts = data => http.post(`${baseUrl.httpUrl}/GraphPointFonts/setGraphFont`,data)

// 分布图
export const setFBTTime = data => http.post(`${baseUrl.httpUrl}/R_LineInfo/setFBTTime`,data)

// 比例尺
export const GraphScaleAdd = data => http.post(`${baseUrl.httpUrl}/GraphScale/Add`,data);
export const GraphScaleEdit = data => http.post(`${baseUrl.httpUrl}/GraphScale/Edit`,data);
export const getGraphScale = data => http.get(`${baseUrl.httpUrl}/GraphScale/getGraphScale`,data);

// 比例尺单位
export const GraphScaleUnitAdd = data => http.post(`${baseUrl.httpUrl}/GraphScaleUnit/Add`,data);
export const GraphScaleUnitEdit = data => http.post(`${baseUrl.httpUrl}/GraphScaleUnit/Edit`,data);
export const getGraphScaleUnitsDel = data => http.get(`${baseUrl.httpUrl}/GraphScaleUnit/Del`,data);
export const getGraphScaleUnits = data => http.get(`${baseUrl.httpUrl}/GraphScaleUnit/getGraphScaleUnits`,data);

// 报告整编
export const reportTreeAdd = data => http.post(`${baseUrl.httpUrl}/ReportTree/Add`,data)
export const reportTreeEdit = data => http.post(`${baseUrl.httpUrl}/ReportTree/Edit`,data)
export const reportTreeDel = data => http.get(`${baseUrl.httpUrl}/ReportTree/Del`,data)
export const reportTreeList = data => http.get(`${baseUrl.httpUrl}/ReportTree/GetTree`,data)
export const setReportFIleID = data => http.get(`${baseUrl.httpUrl}/ReportTree/setReportFIleID`,data)


// 报告接口（第三方接口）
export const getOnlyOfficeVeiw = data => http.get(`${baseUrl.PluginHttpUrl}/getOnlyOfficeVal/view/${data}`)
export const getOnlyOfficeEdit = (data,params) => http.get(`${baseUrl.PluginHttpUrl}/getOnlyOfficeVal/edit/${data}`,params)
export const getOnlyOfficeCopy= data => http.get(`${baseUrl.PluginHttpUrl}/copy/${data}`)
export const previewToJson= (data,params) => http.get(`${baseUrl.PluginHttpUrl}/previewToJson/${data}`,params)

// 实时调控
export const GetAllIndexStatusByDay = data => http.post(`${baseUrl.httpUrl}/SCU_RM_INDEX_RESULT/GetAllIndexStatusByTime`,data)
export const getCalcDescribe = data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_RESULT/getCalcDescribe`,data)
export const indexResultList = data => http.post(`${baseUrl.httpUrl}/SCU_RM_INDEX_RESULT/GetList`,data)
export const GetIndexLink = data => http.post(`${baseUrl.httpUrl}/SCU_RM_INDEX_RESULT/GetIndexLink`,data)
export const scuRemIndexResultCheck = data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_RESULT/CHECK`,data)

// 台帐
export const GetORGUser = data => http.get(`${baseUrl.httpUrl}/Sys_User/GetORGUser`,data)
export const sysLeaderAdd = data => http.post(`${baseUrl.httpUrl}/Sys_Ledger/Add`,data)
export const sysLeaderGetList = data => http.post(`${baseUrl.httpUrl}/Sys_Ledger/getLedger`,data)
export const getLedgerByTp = data => http.post(`${baseUrl.httpUrl}/Sys_Ledger/getLedgerByTp`,data)
export const ledgerProssAdd = data => http.post(`${baseUrl.httpUrl}/Sys_Ledger_Process/Add`,data)
export const getLedgerProcess = data => http.get(`${baseUrl.httpUrl}/Sys_Ledger_Process/getLedgerProcess`,data)
export const sysLeaderSetStatus = data => http.post(`${baseUrl.httpUrl}/Sys_Ledger/setStatus`,data)
export const sysLeaderEdit = data => http.post(`${baseUrl.httpUrl}/Sys_Ledger/Edit`,data)
export const sysLeaderDel = data => http.get(`${baseUrl.httpUrl}/Sys_Ledger/Del`,data)

// 指标控制值
export const indexControlSet= data => http.post(`${baseUrl.httpUrl}/SCU_RM_INDEX_CONTROL/SET`,data)
export const indexControlDel= data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_CONTROL/Del`,data)
export const indexControlList= data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_CONTROL/GetList`,data)

// 指标参数
export const indexParamSet= data => http.post(`${baseUrl.httpUrl}/SCU_RM_INDEX_PARAM/SET`,data)
export const indexParamDel= data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_PARAM/Del`,data)
export const indexParamList= data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_PARAM/GetList`,data)

// 过程线与变位图关联
export const indexLinkAdd= data => http.post(`${baseUrl.httpUrl}/SCU_RM_INDEX_LINK/Add`,data)
export const indexLinkEdit= data => http.post(`${baseUrl.httpUrl}/SCU_RM_INDEX_LINK/Edit`,data)
export const indexLinkDel= data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_LINK/Del`,data)
export const indexLinkList= data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_LINK/GetList`,data)

// 综合评价
export const getCalcRecordList = data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_RESULT/getCalcRecordList`,data)
export const getUserCustomize = id => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_RESULT/getUserCustomize?station_id=${id}`)
export const getIndexByStationZH = data => http.post(`${baseUrl.httpUrl}/SCU_RM_INDEX_RESULT/getIndexByStationZH`,data)
export const getBottomNodeIndexSS = data => http.post(`${baseUrl.httpUrl}/SCU_RM_INDEX_RESULT/getBottomNodeIndexSS`,data)
export const CALCIndexByStation = data => http.post(`${baseUrl.httpUrl}/SCU_RM_INDEX_RESULT/CALCIndexByStation`,data)

// 电站管理
export const getORGByUser = data => http.get(`${baseUrl.httpUrl}/SYS_ORG/getORGByUser`,data);
export const GetStationByCompanyID = ORGID => http.get(`${baseUrl.httpUrl}/Station/GetStationByCompanyID?ORGID=${ORGID}`);
export const EditStation = data => http.post(`${baseUrl.httpUrl}/Station/Edit`, data);
export const DelStation = data => http.get(`${baseUrl.httpUrl}/Station/Del`, data);


// 组织架构
export const orgAdd = data => http.post(`${baseUrl.httpUrl}/SYS_ORG/Add`,data);
export const orgEdit = data => http.post(`${baseUrl.httpUrl}/SYS_ORG/Edit`,data);
export const orgDel = data => http.get(`${baseUrl.httpUrl}/SYS_ORG/Del`,data);
export const getOrgStationByBasin = data => http.get(`${baseUrl.httpUrl}/SYS_ORG/getOrgStationByBasin`,data);
export const setOrgStation = data => http.post(`${baseUrl.httpUrl}/SYS_ORG/setOrgStation`,data);
export const GetAllByORG = data => http.get(`${baseUrl.httpUrl}/Basin/GetAllByORG`,data)

// 角色管理
export const roleAdd = data => http.post(`${baseUrl.httpUrl}/Sys_Role/Add`,data);
export const roleEdit = data => http.post(`${baseUrl.httpUrl}/Sys_Role/Edit`,data);
export const roleDel = data => http.get(`${baseUrl.httpUrl}/Sys_Role/Del`,data);
export const roleList = data => http.get(`${baseUrl.httpUrl}/Sys_Role/QueryAll`,data);
export const moduleByRoleId = data => http.get(`${baseUrl.httpUrl}/Sys_Role/getModuleByRoleId`,data);
export const setRoleModule = data => http.post(`${baseUrl.httpUrl}/Sys_Role/setRoleModule`,data);
export const getUserByRoleId = data => http.get(`${baseUrl.httpUrl}/Sys_RM/getUserByRoleId`,data);
export const setRoleUsers = data => http.post(`${baseUrl.httpUrl}/Sys_RM/setRoleUsers`,data);
export const QueryUserList = data => http.get(`${baseUrl.httpUrl}/Sys_User/QueryUserList`,data);
export const AddUser = data => http.post(`${baseUrl.httpUrl}/Sys_User/AddUser`,data);
export const UpdateUser = data => http.post(`${baseUrl.httpUrl}/Sys_User/UpdateUser`,data);
export const DelUserList = data => http.post(`${baseUrl.httpUrl}/Sys_User/Del?id=${data}`,data);
export const ModifyUserPwdForce = data => http.post(`${baseUrl.httpUrl}/Sys_User/ModifyUserPwdForce`,data);

// 厂家你器产品入库
export const GetAllFactory = () => http.get(`${baseUrl.httpUrl}/InstrumentFactory/GetAllFactory`);
export const EditInstrumentFactory = data => http.post(`${baseUrl.httpUrl}/InstrumentFactory/Edit`, data);
export const DelInstrumentFactory = data => http.get(`${baseUrl.httpUrl}/InstrumentFactory/Del`, data);
export const AddInstrumentFactory = data => http.post(`${baseUrl.httpUrl}/InstrumentFactory/Add`, data);
export const GetInstrumentObj = data => http.get(`${baseUrl.httpUrl}/InstrumentObj/GetInstrumentObj`,data);
export const GetInstrumentCOMPByModeId = id => http.post(`${baseUrl.httpUrl}/InstrumentCOMP/GetInstrumentCOMPByModeId?InstrumentModelID=${id}`);
export const GetParameterByModeId = InstrumentModelID => http.post(`${baseUrl.httpUrl}/InstrumentParameter/GetParameterByModeId?InstrumentModelID=${InstrumentModelID}`);
export const InstrumentPOINT = data => http.get(`${baseUrl.httpUrl}/InstrumentPOINT/getInstrumentPOINTs`,data)
export const EditInstrumentParameter = data => http.post(`${baseUrl.httpUrl}/InstrumentParameter/Edit`, data);
export const AddInstrumentParameter = data => http.post(`${baseUrl.httpUrl}/InstrumentParameter/Add`, data);
export const GetInstrumentCOMPDelParame = id => http.get(`${baseUrl.httpUrl}/InstrumentParameter/Del?id=${id}`);
export const AddInstrumentCOMP = data => http.post(`${baseUrl.httpUrl}/InstrumentCOMP/Add`, data);
export const EditInstrumentCOMP = data => http.post(`${baseUrl.httpUrl}/InstrumentCOMP/Edit`, data);
export const GetInstrumentCOMPDelModeId = id => http.get(`${baseUrl.httpUrl}/InstrumentCOMP/Del?id=${id}`);
export const getAllInstrumentPOINTType = data => http.get(`${baseUrl.httpUrl}/InstrumentPOINTType/getAllInstrumentPOINTType`,data)
export const InstrumentPOINTAdd = data => http.post(`${baseUrl.httpUrl}/InstrumentPOINT/Add`,data)
export const InstrumentPOINTEdit = data => http.post(`${baseUrl.httpUrl}/InstrumentPOINT/Edit`,data)
export const InstrumentPOINTDel = data => http.post(`${baseUrl.httpUrl}/InstrumentPOINT/Del?id=${data}`)
export const EditInstrumentType = data => http.post(`${baseUrl.httpUrl}/InstrumentType/Edit`, data);
export const AddInstrumentType = data => http.post(`${baseUrl.httpUrl}/InstrumentType/Add`, data);
export const EditInstrumentModel = data => http.post(`${baseUrl.httpUrl}/InstrumentModel/Edit`, data);
export const AddInstrumentModel = data => http.post(`${baseUrl.httpUrl}/InstrumentModel/Add`, data);
export const DelInstrumentType = id => http.post(`${baseUrl.httpUrl}/InstrumentType/Del?id=${id}`);
export const DelInstrumentModel = id => http.get(`${baseUrl.httpUrl}/InstrumentModel/Del?id=${id}`);

// 监测数据仪器管理
export const GetAllPowerNavigationBYid = data => http.get(`${baseUrl.httpUrl}/PowerNavigation/QueryByStationId`,data);
export const GetTreeAsyncSet = (station_id, style) => http.post(`${baseUrl.httpUrl}/PointTree/GetTreeAsyncSet?station_id=${station_id}&style=${style}`);
export const GetPointsByTreeId = (id,stationId,style) => http.post(`${baseUrl.httpUrl}/PointTree/GetPointsByTreeId?Treeid=${id}&stationId=${stationId}&style=${style}`);
export const DelTree = (id) => http.get(`${baseUrl.httpUrl}/PointTree/Del?id=${id}`);
export const EditTree = (data) => http.post(`${baseUrl.httpUrl}/PointTree/Edit`,data);
export const AddTree = (data) => http.post(`${baseUrl.httpUrl}/PointTree/Add`,data);
export const RemoveTreePoints = data => http.post(`${baseUrl.httpUrl}/PointTree/RemoveTreePoints`,data);
export const GetPowerPointType = (name,Station_ID,pageIndex,pageSize) => http.post(`${baseUrl.httpUrl}/PowerPointType/QueryPageByName?name=${name}&Station_ID=${Station_ID}&pageIndex=${pageIndex}&pageSize=${pageSize}`);
export const QueryPointByName = data => http.get(`${baseUrl.httpUrl}/PowerPoint/QueryPointByName`,data)
export const AddTreePoints = data => http.post(`${baseUrl.httpUrl}/PointTree/AddTreePoints`,data);
export const DelPowerNavigation = id => http.post(`${baseUrl.httpUrl}/PowerNavigation/Del?NavigationID=${id}`);
export const EditPowerNavigation = data => http.post(`${baseUrl.httpUrl}/PowerNavigation/Edit`,data);
export const AddPowerNavigation = data => http.post(`${baseUrl.httpUrl}/PowerNavigation/Add`,data);
export const EditPowerPointType = data => http.post(`${baseUrl.httpUrl}/PowerPointType/Edit`,data);
export const AddPowerPointType = data => http.post(`${baseUrl.httpUrl}/PowerPointType/Add`,data);
export const QueryCOMP = data => http.get(`${baseUrl.httpUrl}/PowerPointTypeCOMP/QueryCOMP`,data)
export const setQueryCOMP = data => http.post(`${baseUrl.httpUrl}/PowerPointTypeCOMP/setCOMP`,data)
export const DelPowerPointType = id => http.post(`${baseUrl.httpUrl}/PowerPointType/Del?id=${id}`);
export const EditPowerPoints = data => http.post(`${baseUrl.httpUrl}/PowerPoint/Edit`,data);
export const AddPowerPoints = data => http.post(`${baseUrl.httpUrl}/PowerPoint/Add`,data);
export const DelPowerPoints = id => http.get(`${baseUrl.httpUrl}/PowerPoint/Del?ID=${id}`);
export const PowerPointHeartWallAdd = data => http.post(`${baseUrl.httpUrl}/PowerPointHeartWall/Add`,data)
export const PowerPointHeartWallEdit = data => http.post(`${baseUrl.httpUrl}/PowerPointHeartWall/Edit`,data)
export const PowerPointHeartWallDel = data => http.get(`${baseUrl.httpUrl}/PowerPointHeartWall/Del`,data)

// 预警响应
export const smsplanAdd = data => http.post(`${baseUrl.httpUrl}/SMSPlan/AddOrUpdate`,data)
export const smsplanDel = data => http.del(`${baseUrl.httpUrl}/SMSPlan/Delete`,data)
export const smsplanList = data => http.post(`${baseUrl.httpUrl}/SMSPlan/GetPlans`,data)
export const GetSMSPlanUsers = data => http.get(`${baseUrl.httpUrl}/Sys_User/GetSMSPlanUsers`,data)
export const GetPlanById = data => http.get(`${baseUrl.httpUrl}/SMSPlan/GetPlanById`,data)
export const getIndexSetedMenu = data => http.get(`${baseUrl.httpUrl}/SMS_USER_INDEX/getIndexSetedMenu`,data) 
export const getIndexMenu = data => http.get(`${baseUrl.httpUrl}/SMS_USER_INDEX/getIndexMenu`,data) 
export const setIndexMenu = data => http.post(`${baseUrl.httpUrl}/SMS_USER_INDEX/setIndexMenu`,data) 
export const getCompsSMS = data => http.get(`${baseUrl.httpUrl}/SMS_USER_INDEX/getComps`,data) 
export const getLevelByID = data => http.get(`${baseUrl.httpUrl}/SMS_USER_INDEX/getLevelByID`,data) 

// 报告模板
export const getAllLables = data => http.get(`${baseUrl.httpUrl}/PointHelp/getAllLables`,data)

// 标签设置
export const getPointInfoConfig = data => http.get(`${baseUrl.httpUrl}/PointHelp/getPointInfoConfig`,data)
export const getPointCompType = data => http.get(`${baseUrl.httpUrl}/PointHelp/getPointCompType`,data)
export const EditPointInfoCompSet = data => http.post(`${baseUrl.httpUrl}/PointHelp/EditPointInfo_CompSet`,data)
export const delLableByID = data => http.get(`${baseUrl.httpUrl}/PointHelp/delLableByID`,data)

// 会商
export const videoTreeList = data => http.get(`${baseUrl.httpUrl}/videoTree/GetList`,data) 
export const getVidepJpgByIDs = data => http.post(`${baseUrl.httpUrl}/videoTree/getVidepJpgByIDs`,data) 


// 图片数字化
export const GetBWTBaseTree = data => http.get(`${baseUrl.httpUrl}/GraphTree/GetBWTBaseTree`,data);
export const getListByGraphTreeID = data => http.post(`${baseUrl.httpUrl}/GraphPoint/getListByGraphTreeID`,data);
export const GraphPointAdd = data => http.post(`${baseUrl.httpUrl}/GraphPoint/Add`,data);
export const GraphPointEdit = data => http.post(`${baseUrl.httpUrl}/GraphPoint/Edit`,data);
export const GraphPointDel = id => http.get(`${baseUrl.httpUrl}/GraphPoint/Del?ID=${id}`);
export const GraphConfigAdd = data => http.post(`${baseUrl.httpUrl}/GraphConfig/Add`,data)
export const GraphConfigEdit = data => http.post(`${baseUrl.httpUrl}/GraphConfig/Edit`,data)
export const GraphConfigDel = data => http.get(`${baseUrl.httpUrl}/GraphConfig/Del`,data)
export const getConfigsByTreeID = data => http.post(`${baseUrl.httpUrl}/GraphConfig/getConfigsByTreeID`,data)
export const getConfigByID = data => http.post(`${baseUrl.httpUrl}/GraphConfig/getConfigByID`,data)
export const saveR_Lable = data => http.post(`${baseUrl.httpUrl}/PointHelp/saveR_Lable`,data)
export const getLableByID = data => http.get(`${baseUrl.httpUrl}/PointHelp/getLableByID`,data)
export const scuRmIndexClassCompList = data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_CLASS_COMP/GetIndex_indexClassCOMPList`,data)

// 变位图配置
export const setLink = data => http.post(`${baseUrl.httpUrl}/GraphT_PointT/setLink`,data);
export const getDIR = data => http.get(`${baseUrl.httpUrl}/GraphPointDIR/getDIR`,data);
export const GraphPointDIRAdd = data => http.post(`${baseUrl.httpUrl}/GraphPointDIR/Add`,data);
export const GraphPointDIREdit = data => http.post(`${baseUrl.httpUrl}/GraphPointDIR/Edit`,data);
export const setGroup = data => http.post(`${baseUrl.httpUrl}/GraphPointDraw/setGroup`,data);
export const getGroup = data => http.get(`${baseUrl.httpUrl}/GraphPointDraw/getGroup`,data);
export const setCOMP = data => http.post(`${baseUrl.httpUrl}/GraphPointDraw/setCOMP`,data);
export const getPonits = data => http.get(`${baseUrl.httpUrl}/GraphPointDraw/getPonits`,data);
export const getCOMPByCode_ID = data => http.post(`${baseUrl.httpUrl}/GraphPointDraw/getCOMPByCode_ID`,data);

// 表格模板
export const ImportTableGet = data => http.get(`${baseUrl.httpUrl}/R_Table/ImportTable`,data)
export const SaveTable = data => http.post(`${baseUrl.httpUrl}/R_Table/SaveTable_V2`,data)
export const getPointInfoValue = data => http.get(`${baseUrl.httpUrl}/PointHelp/getPointInfoValue`,data)
export const getTableCellSign = data => http.get(`${baseUrl.httpUrl}/R_Table/getTableCellSign`,data)
export const setMainCell = data => http.get(`${baseUrl.httpUrl}/R_Table/setMainCell`,data)
export const mergeCell = data => http.post(`${baseUrl.httpUrl}/R_Table/mergeCell`,data)
export const splitCell = data => http.post(`${baseUrl.httpUrl}/R_Table/splitCell`,data)
export const DelRow = data => http.post(`${baseUrl.httpUrl}/R_Table/DelRow`,data)
export const AddRow = data => http.post(`${baseUrl.httpUrl}/R_Table/AddRow`,data)
export const CopyRowToAddRow = data => http.post(`${baseUrl.httpUrl}/R_Table/CopyRowToAddRow`,data)
export const getTableAutoRow = data => http.get(`${baseUrl.httpUrl}/R_TableAutoRow/getList`,data)
export const AddTableAutoRow = data => http.post(`${baseUrl.httpUrl}/R_TableAutoRow/ADDList`,data)
export const delTableAutoRow = data => http.get(`${baseUrl.httpUrl}/R_TableAutoRow/Del`,data)
export const DelCol = data => http.post(`${baseUrl.httpUrl}/R_Table/DelCol`,data)
export const AddCol = data => http.post(`${baseUrl.httpUrl}/R_Table/AddCol`,data)
export const CopyColAddCol = data => http.post(`${baseUrl.httpUrl}/R_Table/CopyColAddCol`,data)

// 巡视模板
export const InspectionTempAdd = data => http.post(`${baseUrl.httpUrl}/InspectionTemp/Add`,data)
export const InspectionTempEdit = data => http.post(`${baseUrl.httpUrl}/InspectionTemp/Edit`,data)
export const InspectionTempDel = data => http.get(`${baseUrl.httpUrl}/InspectionTemp/Del`,data)
export const InspectionTempTreeAdd = data => http.post(`${baseUrl.httpUrl}/InspectionTempTree/Add`,data)
export const InspectionTempTreeEdit = data => http.post(`${baseUrl.httpUrl}/InspectionTempTree/Edit`,data)
export const InspectionTempTreeDel = data => http.get(`${baseUrl.httpUrl}/InspectionTempTree/Del`,data)

// 指标类型管理
export const scuRmIndexClassAdd = data => http.post(`${baseUrl.httpUrl}/SCU_RM_INDEX_CLASS/Add`,data);
export const scuRmIndexClassEdit = data => http.post(`${baseUrl.httpUrl}/SCU_RM_INDEX_CLASS/Edit`,data);
export const scuRmIndexClassDel = data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_CLASS/Del`,data);
export const scuRmIndexClassList = data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_CLASS/GetList`,data);
export const classParamAdd = data => http.post(`${baseUrl.httpUrl}/SCU_RM_INDEX_CLASS_PARAM/Add`,data);
export const classParamEdit = data => http.post(`${baseUrl.httpUrl}/SCU_RM_INDEX_CLASS_PARAM/Edit`,data);
export const classParamDel = data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_CLASS_PARAM/Del`,data);
export const classParamList = data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_CLASS_PARAM/GetList`,data);
export const getINDEX_CLASS = data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX/getINDEX_CLASS`,data)
export const GetINDEXList = data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_LINKINDEX/GetINDEXList`,data)
export const GetInspectionLists = data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_Inspection/GetInspectionList`,data)

// 指标关联测点
export const indexPointSet= data => http.post(`${baseUrl.httpUrl}/SCU_RM_INDEX_POINT/Set`,data)
export const indexPointEdit= data => http.post(`${baseUrl.httpUrl}/SCU_RM_INDEX_POINT/Edit`,data)
export const indexPointDel= data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_POINT/Del`,data)
export const indexPointList= data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_POINT/GetList`,data)

// 指标关联指标
export const indexLinkIndexList= data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_LINKINDEX/GetList`,data)
export const indexLinkIndexSet= data => http.post(`${baseUrl.httpUrl}/SCU_RM_INDEX_LINKINDEX/SET`,data)
export const indexLinkIndexDel= data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_LINKINDEX/Del`,data)



// 指标计算配置
export const scuRmIndexAdd= data => http.post(`${baseUrl.httpUrl}/SCU_RM_INDEX/Add`,data)
export const scuRmIndexEdit= data => http.post(`${baseUrl.httpUrl}/SCU_RM_INDEX/Edit`,data)
export const scuRmIndexDel= data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX/Del`,data)
export const scuRmIndexList= data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX/GetList`,data)
export const GetPOINList = data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_POINT/GetPOINList`,data)
export const getInstrComp= data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_POINT/getInstrComp`,data)
// 指标类型控制值
export const classControlAdd = data => http.post(`${baseUrl.httpUrl}/SCU_RM_INDEX_CLASS_CONTROL/Add`,data);
export const classControlEdit = data => http.post(`${baseUrl.httpUrl}/SCU_RM_INDEX_CLASS_CONTROL/Edit`,data);
export const classControlDel = data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_CLASS_CONTROL/Del`,data);
export const classControlList = data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_CLASS_CONTROL/GetList`,data);

//指标类型POINT含义
export const compLinkAdd= data => http.post(`${baseUrl.httpUrl}/SCU_RM_INDEX_CLASS_COMP_LINK/Add`,data)
export const compLinkEdit= data => http.post(`${baseUrl.httpUrl}/SCU_RM_INDEX_CLASS_COMP_LINK/Edit`,data)
export const compLinkDel= data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_CLASS_COMP_LINK/Del`,data)
export const compLinkList= data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_CLASS_COMP_LINK/GetList`,data)

// 指标INDEX含义
export const classLinkIndexList= data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_CLASS_LINKINDEX/GetList`,data)
export const classLinkIndexAdd= data => http.post(`${baseUrl.httpUrl}/SCU_RM_INDEX_CLASS_LINKINDEX/Add`,data)
export const classLinkIndexEdit= data => http.post(`${baseUrl.httpUrl}/SCU_RM_INDEX_CLASS_LINKINDEX/Edit`,data)
export const classLinkIndexDel= data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_CLASS_LINKINDEX/Del`,data)

//指标分量
export const scuRmIndexClassCompAdd = data => http.post(`${baseUrl.httpUrl}/SCU_RM_INDEX_CLASS_COMP/Add`,data);
export const scuRmIndexClassCompEdit = data => http.post(`${baseUrl.httpUrl}/SCU_RM_INDEX_CLASS_COMP/Edit`,data);
export const scuRmIndexClassCompDel = data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_CLASS_COMP/Del`,data);
export const scuRmIndexClassCompGet = data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_CLASS_COMP/GetList`,data);

export const InspectionAdd = data => http.post(`${baseUrl.httpUrl}/SCU_RM_INDEX_CLASS_Inspection/Add`,data)
export const InspectionEdit = data => http.post(`${baseUrl.httpUrl}/SCU_RM_INDEX_CLASS_Inspection/Edit`,data)
export const InspectionDel = data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_CLASS_Inspection/Del`,data)
export const InspectionList = data => http.get(`${baseUrl.httpUrl}/SCU_RM_INDEX_CLASS_Inspection/GetList`,data)


// 大坝管理相关

export const basinList = data => http.get(`${baseUrl.httpUrl2}/common/basin`,data)
export const DaStationList = data => http.get(`${baseUrl.httpUrl2}/station-list`,data)
export const UnBindingStationList = data => http.get(`${baseUrl.httpUrl2}/station/unbinding-list`,data)
export const DaClientList = data => http.get(`${baseUrl.httpUrl2}/station/client-list
`,data)
export const DaStationDel = data => http.post(`${baseUrl.httpUrl2}/station/db-del`,data)
export const DaUnbinding = data => http.post(`${baseUrl.httpUrl2}/station/client-unbinding`,data)
export const DabindingList = data => http.get(`${baseUrl.httpUrl2}/station/binding-list`,data)
export const DaBinding = data => http.post(`${baseUrl.httpUrl2}/station/client-binding`,data)
export const DaDelClientList = data => http.post(`${baseUrl.httpUrl2}/station/client-del`,data)
export const DaClientRecord = data => http.get(`${baseUrl.httpUrl2}/station/client-record`,data)
export const DBlist = data => http.get(`${baseUrl.httpUrl2}/station/db-list`,data)
export const DBlistAdd = data => http.post(`${baseUrl.httpUrl2}/station/db-add`,data)
export const DBlistEdit = data => http.post(`${baseUrl.httpUrl2}/station/db-save`,data)  

export const tableColumnList = data => http.get(`${baseUrl.httpUrl2}/point/table-column-list`,data)  

export const versionTable = data => http.get(`${baseUrl.httpUrl2}/dict/version/table`,data) 
export const versionColumn = data => http.get(`${baseUrl.httpUrl2}/dict/version/column`,data)  
export const pointSave = data => http.post(`${baseUrl.httpUrl2}/point/save`,data) 
export const pointDetail = data => http.get(`${baseUrl.httpUrl2}/point/detail`,data) 
export const pointPreview = data => http.get(`${baseUrl.httpUrl2}/point/preview`,data) 
export const setTaskInterval = data => http.post(`${baseUrl.httpUrl2}/station/interval`,data) 

export const connectTest = data => http.post(`${baseUrl.httpUrl2}/station/db-connect-test`,data) 

// 采集任务
export const taskList = data => http.get(`${baseUrl.httpUrl2}/task/list`,data) 
export const taskListAdd = data => http.post(`${baseUrl.httpUrl2}/task/add`,data) 
export const taskListDel = data => http.post(`${baseUrl.httpUrl2}/task/del`,data) 
export const taskListDetail = data => http.get(`${baseUrl.httpUrl2}/task/detail`,data) 
export const taskListUpdate = data => http.post(`${baseUrl.httpUrl2}/task/save`,data) 

export const taskRecordList = data => http.get(`${baseUrl.httpUrl2}/task/record-list`,data) 
export const taskRecordPointList = data => http.get(`${baseUrl.httpUrl2}/record-point-list`,data) 
export const taskRecordLog = data => http.get(`${baseUrl.httpUrl2}/record-log`,data) 

export const recordList = data => http.get(`${baseUrl.httpUrl2}/record-list`,data) 
export const settingCollect = data => http.post(`${baseUrl.httpUrl2}/setting/collect`,data) 
export const settingCollectDetail = data => http.get(`${baseUrl.httpUrl2}/setting/collect-detail`,data) 

export const changeIndex = data => http.post(`${baseUrl.httpUrl2}/point/change-index`,data) 

// 字典管理
export const DictList = data => http.get(`${baseUrl.httpUrl2}/dict/list`,data)  
export const DictListAdd = data => http.post(`${baseUrl.httpUrl2}/dict/add`,data)  
export const DictListDetail = data => http.get(`${baseUrl.httpUrl2}/station/db-detail`,data)  
export const DictListEdit = data => http.post(`${baseUrl.httpUrl2}/dict/save`,data) 
export const DictListDel = data => http.post(`${baseUrl.httpUrl2}/dict/del`,data) 
export const DictVersionList = data => http.get(`${baseUrl.httpUrl2}/dict/version/list`,data) 
export const dbConfig = data => http.get(`${baseUrl.httpUrl2}/common/db-config`,data) 
export const versionDetail = data => http.get(`${baseUrl.httpUrl2}/dict/version/detail`,data)  
export const versionSave = data => http.post(`${baseUrl.httpUrl2}/dict/version/save`,data) 
export const versionRelease = data => http.post(`${baseUrl.httpUrl2}/dict/version/release`,data) 
export const versionDel = data => http.post(`${baseUrl.httpUrl2}/dict/version/del`,data)
export const DbtableTales = data => http.post(`${baseUrl.httpUrl2}/station/db-tales`,data) 
export const DbtableTableColumns = data => http.post(`${baseUrl.httpUrl2}/station/db-table-columns`,data) 

// 映射
export const PowerPointQueryById = data => http.get(`${baseUrl.httpUrl}/PowerPoint/QueryById`,data)


// 流域管理
export const EditBasin = data => http.post(`${baseUrl.httpUrl}/Basin/Edit`, data);
export const DelBasin = data => http.get(`${baseUrl.httpUrl}/Basin/del`, data);
export const AddBasin = data => http.post(`${baseUrl.httpUrl}/Basin/Add`, data);
export const GetTblStationImg = id => http.post(`${baseUrl.httpUrl}/Tbl_Station_Img/GetTbl_Station_ImgByStationID?Station_Id=${id}`);
export const EditTblStationImg = data => http.post(`${baseUrl.httpUrl}/Tbl_Station_Img/Edit`, data);
export const AddTblStationImg = data => http.post(`${baseUrl.httpUrl}/Tbl_Station_Img/Add`, data);
export const DelTblStationImg = id => http.get(`${baseUrl.httpUrl}/Tbl_Station_Img/Del?id=${id}`);


// 电建通跳转用
export const ThirdpartyController = data => http.get(`${baseUrl.httpUrl3}/oasso/ThirdpartyController`,data)
export const getAllUsersDJT = data => http.get(`${baseUrl.httpUrl}/Sys_UserDJT/getAllUsers`,data)
export const setLinkDJT = data => http.get(`${baseUrl.httpUrl}/Sys_UserDJT/setLink`,data)
export const UserDJTlogin = data => http.get(`${baseUrl.httpUrl}/Sys_UserDJT/Login`,data)

